package main

import (
	"context"
	"fmt"

	"github.com/tendermint/tendermint/my_test/config"
	"github.com/tendermint/tendermint/rpc/client/http"
)

var (
	cli *http.HTTP
	err error
)

func init() {
	cli, err = http.New(config.DefaultIPAndPort, "/websocket")
	if err != nil {
		panic(err)
	}
}

func main() {
	abciQueryRes, err := cli.ABCIQuery(context.TODO(), "", nil)
	if err != nil {
		panic(err)
	}

	fmt.Println(abciQueryRes.Response.Height)
}
